package org.libcsp.generic.api.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Collection;
@Getter
@Setter
@ToString
public class CommonResponse<T> extends GenericResponse{
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private T data;
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private Collection<T> records;
    @JsonInclude(value = JsonInclude.Include.NON_EMPTY)
    private Long total;
}
